void main(List<String> args) {
  int age =10;
  String str = age == 10 ? "10岁" : "20岁";
  print(str);  //输出：10岁
  
  var x = null;
  String y = "java";
  String z = x ?? y;
  print(z); //输出：java
}
